﻿using System;

namespace YtbDownloader.Core.Common;

public record CommandEvent(EventType EventType, string EventMessage = null)
{
    private DateTime EventDateTime { get; } = DateTime.Now;

    public override string ToString()
    {
        return $"{EventDateTime} {EventMessage}";
    }

    public static implicit operator string(CommandEvent commandEvent)
    {
        return commandEvent.ToString();
    }
}